package com.wandian.news.adapter;

import android.widget.TextView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.wandian.news.R;
import com.wandian.news.bean.KnowledgeMYJJBean;


/**
 * @author Administrator
 * @date 2019/12/16-13:32
 * @description 适配器
 **/
public class KnowledgeMYJJRecycleAdapter extends BaseQuickAdapter<KnowledgeMYJJBean.NewslistEntity, BaseViewHolder> {

    public KnowledgeMYJJRecycleAdapter(int layoutResId) {
        super(layoutResId);
    }

    @Override
    protected void convert(BaseViewHolder helper,KnowledgeMYJJBean.NewslistEntity item) {
        TextView tv_content = helper.getView(R.id.tv_content);
        tv_content.setText(""+item.getContent());
        TextView tv_mrname = helper.getView(R.id.tv_mrname);
        tv_mrname.setText(""+item.getMrname());
    }


}
